]> dgit.raspbian.org Git - gnome-shell.git/commitdiff
extensionPrefs: Fix pref button appearance
authorFlorian Müllner <fmuellner@gnome.org>
Fri, 5 Apr 2019 16:24:09 +0000 (18:24 +0200)
committerFlorian Müllner <fmuellner@gnome.org>
Thu, 11 Apr 2019 22:51:44 +0000 (00:51 +0200)
After the Adwaita refresh, the button shows up oval rather than
circular. To address this, make sure that the "image-button" class
is applied as well by using the dedicated setter function.

https://gitlab.gnome.org/GNOME/gnome-shell/merge_requests/482

js/extensionPrefs/main.js

index 438788f1d9b3c37f70273980eef6ab4d416e6322..43efa95e92976e0f2741450e3376ff4c7cb7077b 100644 (file)
@@ -551,9 +551,9 @@ class ExtensionRow extends Gtk.ListBoxRow {
 
         let button = new Gtk.Button({ valign: Gtk.Align.CENTER,
                                       no_show_all: true });
-        button.add(new Gtk.Image({ icon_name: 'emblem-system-symbolic',
-                                   icon_size: Gtk.IconSize.BUTTON,
-                                   visible: true }));
+        button.set_image(new Gtk.Image({ icon_name: 'emblem-system-symbolic',
+                                         icon_size: Gtk.IconSize.BUTTON,
+                                         visible: true }));
         button.get_style_context().add_class('circular');
         hbox.add(button);